var path = window.location.href;
var param = path.split("?")
var a=param[1].split("&")

var tit=a[1].split("=")
var title=tit[1].split(",")

var at=a[2].split("=")
var started_at=at[1].split(",")

var end=a[3].split("=")
var end_in=end[1].split(",")

var url_path=decodeURIComponent(decodeURIComponent(decodeURIComponent(getQueryString("url_path"))))

$("#title").val(decodeURI(title));
$("#logmin").val(decodeURI(started_at));
$("#logmax").val(decodeURI(end_in));
$("#url_path").val(decodeURI(url_path));
$(function () {
    $.ajax({
        type: "post",
        url: root.sroreinter.search_activity_conf,
        cache: false,  //禁用缓存
        dataType: "json",
        data: {
            activity_id: getQueryString("activity_id")
        },
        //传入组装的参数
        success: function (data) {
            if(data.errorCode=="0") {
                console.log(data.data);
                var dataInter=data.data[0].rich_text;
                // editor.txt.html(dataInter)
                ue.ready(function() {
                    ue.setContent(dataInter);
                    ue.setDisabled();
                });
            }
        }
    })
})
function removeIframe(){
    var index = parent.layer.getFrameIndex(window.name);
    parent.layer.close(index);
}